package org.lin.shortlink.repository;

import org.lin.shortlink.core.pojo.Link;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface LinkRepository extends JpaRepository<Link, Long>, JpaSpecificationExecutor<Link> {

    Link findLinkByLongUrl(String longUrl);

    Link findLinkByShortUrl(String shortUrl);
}
